<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        position: fixed;
        top: 50%;
        right: 0px;
        transform: translateY(-50%);
      }
      .bigbox {
        position: fixed;
        top: 50%;
        right: 335px;
        transform: translateY(-50%);
        display: none;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <img src="./images/3.jpg" alt="" />
    </div>
    <div class="bigbox">
      <img src="./images/宫泽千春.png" alt="" />
    </div>
    <script>
      window.onload = function () {
        document.querySelector(".box").onmouseover = function () {
          document.querySelector(".bigbox").style.display = "block";
        };

        document.querySelector(".box").onmouseout = function () {
          document.querySelector(".bigbox").style.display = "none";
        };
      };
    </script>
  </body>
</html>
